<%--<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%> --%>
<%
    String requestPage = request.getParameter("page");
    if (requestPage == null) {
        requestPage = "0";
    }
    if (requestPage.equals("thread")) {
        request.getRequestDispatcher("thread.jsp").forward(request, response);
    } else if (requestPage.equals("message")) {
        request.getRequestDispatcher("message.jsp").forward(request, response);
    } else if (requestPage.equals("editmessage")) {
        request.getRequestDispatcher("editmessage.jsp").forward(request, response);
    } else if (requestPage.equals("profile")) {
        request.getRequestDispatcher("profile.jsp").forward(request, response);
    } else {
        request.getRequestDispatcher("forum.jsp").forward(request, response);
    }
%>